<?php defined('APP_PATH') or exit('Access Denied');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>华诺软件[VNCMS] - 后台管理中心</title>
<link rel="stylesheet" type="text/css" href="vonuo/static/css/vonuo.css">
<link rel="stylesheet" type="text/css" href="vonuo/static/css/admin.css">
<script type="text/javascript" src="vonuo/static/js/jquery.min.js"></script>
</head>

<body>
<div id="header">
	<div class="outBg f_right">
		<a href="<?php echo spUrl('open','logout');?>" class="f_right yellow">[退出登录]</a>
		欢迎登录后台管理中心！ [<?php echo $_SESSION['admin']['name'];?>]
	</div>
	<div class="gs_logo"></div>
	<div class="gs_news">
		<div id="time" class="time f_right"></div>
		<div class="news_con">公告信息：<span><?php if(!empty($vnmess)){ echo $vnmess;}else{ echo '连接远程服务器失败';}?></span></div>
	</div>
</div>
<div id="content">
	<table class="main_tab"  border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="td_left">
				<div class="work_title">
					<a href="./" target="_blank">前往首页</a>
				</div>
				<ul class="gs_menu">
				<?php $i=0;foreach($menus as $menu){?>
				 	<li>
						<p><?php echo $menu['name'];?></p>
						<div class="lef_nav" <?php if($i>0){?>style="display:none"<?php }?>>
						<?php foreach($menu['child'] as $v){?>
							<a href="javascript:;" onclick="main_frame_src('<?php echo $v['url'];?>','<?php echo $menu['name'];?>','<?php echo $v['name'];?>')"><em><?php echo $v['name'];?></em></a>
						<?php }?>
     			 		</div>
					</li>
				<?php $i++;}unset($i);?>
				</ul>
			</td>
			<td class="td_close"></td>
			<td  id="iframe_td" style="padding-bottom:40px; *+height:600px;" >
				<div class="weizhi">
					<div id="posInfo" class="crumbs">当前位置：管理中心<span>>></span>控制面板<span>>></span>系统信息</div>
				</div>
				<iframe id="vonuo" src="<?php echo spUrl('site','info');?>" width="100%" height="100%" allowtransparency="true" border="0" frameborder="0" marginwidth="0px" marginheight="0px"></iframe>
			</td>
		</tr>
	</table>
</div>
<div id="footer">华诺软件[VNCMS] Copyright 2011-<?php echo date('Y');?> 华诺互动[VONUO.COM] 版权所有</div>
<script type="text/javascript">
if($.browser.msie){
	$('#iframe_td').css('height', (screen.availHeight-282) + 'px');
}
$(document).ready(function(){
	$('.gs_menu li:first').find('p').addClass('txt_qing');
	$('.gs_menu li').click(function(){
		var index=$(this).index('.gs_menu li');
		$(this).find('p').addClass('txt_qing').end().siblings().find('p').removeClass('txt_qing');
		$(this).find('.lef_nav').slideDown().end().siblings().find('.lef_nav').slideUp();
	});
});
function currentTime(){
	var d = new Date(), str = '';
	str += d.getFullYear() + '年';
	str += d.getMonth() + 1 + '月';
	str += d.getDate() + '日';
	str += ((d.getHours() < 10) ? '0' + d.getHours() : d.getHours()) + '时';
	str += ((d.getMinutes() < 10) ? '0' + d.getMinutes() : d.getMinutes()) + '分';
	str += ((d.getSeconds() < 10) ? '0' + d.getSeconds() : d.getSeconds())+ '秒';
	return str;
}
setInterval(function(){$('#time').html(currentTime)},1000);
function main_frame_src(url, pname, subname){
    $('#posInfo').html('当前位置：管理中心<span>>></span>'+pname+'<span>>></span>'+subname);
	$("iframe#vonuo").attr("src",url);
}
</script>
</body>
</html>